package com.iespring.mapper.admin;

import com.iespring.bean.admin.promotion.po.MallAd;
import com.iespring.bean.admin.promotion.po.MallAdExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author:ZhangShuPeng
 * @Date:2022/12/29/9:35
 * @Description:
 */
public interface MallAdMapper {
    long countByExample(MallAdExample example);

    int deleteByExample(MallAdExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MallAd record);

    int insertSelective(MallAd record);

    List<MallAd> selectByExample(MallAdExample example);

    MallAd selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MallAd record, @Param("example") MallAdExample example);

    int updateByExample(@Param("record") MallAd record, @Param("example") MallAdExample example);

    int updateByPrimaryKeySelective(MallAd record);

    int updateByPrimaryKey(MallAd record);

    List<MallAd> selectByPosition(@Param("position") Integer position);
}